import Vue from 'vue'
import Vuex from 'vuex'
import * as modules from './modules'
import getters from './getters'

import actions from "./actions/index.js"

Vue.use(Vuex)

export default new Vuex.Store({
	modules,
	state: {
		loginPopupShow: false, // 登录弹框  在login组件中监听这个值 来控制显示隐藏
	},
	mutations: {
		//登录弹窗显示隐藏
		UPDATE_LOGIN_POPUP(state,value){
			state.loginPopupShow = value;
		},
	},
	actions,
	getters
})
